package com.sky.mapper.courier;

import com.sky.pojo.Courier;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface CourierMapper {

    @Select("select * from tb_courier where on_job=1")
    public List<Courier> findAllCourierOnJob();

    List<Courier> findCourierByIds(List<Long> courierIds);

    @Select("select * from tb_courier where telephone=#{telephone}")
    Courier selectByPhone(String telephone);

    @Select("select * from tb_courier where id=#{courierId}")
    Courier selectById(Long courierId);
}
